package ems.dev.easycode.util;

import cn.hutool.core.util.StrUtil;

import java.io.File;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/8/2
 * @function
 */
public class FileUtil {

    public static boolean autoCreateDirIfAbsent(String uri,String tactics){
        File file = new File(uri);
        if(!file.exists()){
            file.mkdir();
            return true;
        }
        if(StrUtil.equals("CLEAR",tactics)){
            file.delete();
        }
        return false;
    }
}
